home *** CD-ROM | disk | FTP | other *** search
/ Online Today 2000 January / Onto0100.iso / pc / Browser / Internet Explorer 5.0 / ie 5.0 / iejava.cab / com / ms / ie / WebBrowser_V1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-02-01  |  4.2 KB  |  199 lines

  1. package com.ms.ie;
  2.  
  3. import com.ms.activeX.ActiveXComponent;
  4. import com.ms.activeX.ActiveXControl;
  5. import com.ms.com.ConnectionPointCookie;
  6. import com.ms.com.Variant;
  7. import com.ms.security.PolicyEngine;
  8. import java.util.Vector;
  9.  
  10. public class WebBrowser_V1 extends ActiveXControl {
  11.    private IWebBrowser _jcommem_ocx;
  12.    private Vector _jcommem_listeners2 = new Vector();
  13.    private DWebBrowserEvents2EventMulticaster _jcommem_eventmulticaster2;
  14.    private ConnectionPointCookie _jcommem_cookie2;
  15.    private Vector _jcommem_listeners3 = new Vector();
  16.    private WebBrowser_V1EventMulticaster _jcommem_eventmulticaster3;
  17.    private ConnectionPointCookie _jcommem_cookie3;
  18.    // $FF: synthetic field
  19.    private static Class class$com$ms$ie$DWebBrowserEvents2;
  20.    // $FF: synthetic field
  21.    private static Class class$com$ms$ie$DWebBrowserEvents;
  22.  
  23.    public synchronized Object getContainer() {
  24.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  25.       return this._jcommem_ocx.getContainer();
  26.    }
  27.  
  28.    public synchronized void enableEvents() {
  29.       super.enableEvents();
  30.  
  31.       try {
  32.          this._jcommem_cookie2 = new ConnectionPointCookie(this._jcommem_ocx, this._jcommem_eventmulticaster2, class$com$ms$ie$DWebBrowserEvents2 != null ? class$com$ms$ie$DWebBrowserEvents2 : (class$com$ms$ie$DWebBrowserEvents2 = class$("com.ms.ie.DWebBrowserEvents2")));
  33.          this._jcommem_cookie3 = new ConnectionPointCookie(this._jcommem_ocx, this._jcommem_eventmulticaster3, class$com$ms$ie$DWebBrowserEvents != null ? class$com$ms$ie$DWebBrowserEvents : (class$com$ms$ie$DWebBrowserEvents = class$("com.ms.ie.DWebBrowserEvents")));
  34.       } catch (Throwable var1) {
  35.       }
  36.  
  37.    }
  38.  
  39.    public synchronized String getLocationURL() {
  40.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  41.       return this._jcommem_ocx.getLocationURL();
  42.    }
  43.  
  44.    public synchronized boolean getBusy() {
  45.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  46.       return this._jcommem_ocx.getBusy();
  47.    }
  48.  
  49.    public synchronized void Refresh() {
  50.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  51.       this._jcommem_ocx.Refresh();
  52.    }
  53.  
  54.    public synchronized Object _getParent() {
  55.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  56.       return this._jcommem_ocx.getParent();
  57.    }
  58.  
  59.    public synchronized Object getDocument() {
  60.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  61.       return this._jcommem_ocx.getDocument();
  62.    }
  63.  
  64.    public synchronized void GoForward() {
  65.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  66.       this._jcommem_ocx.GoForward();
  67.    }
  68.  
  69.    public synchronized void Stop() {
  70.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  71.       this._jcommem_ocx.Stop();
  72.    }
  73.  
  74.    public synchronized String getLocationName() {
  75.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  76.       return this._jcommem_ocx.getLocationName();
  77.    }
  78.  
  79.    public void removeDWebBrowserEvents2EventListener(DWebBrowserEvents2EventListener var1) {
  80.       this._jcommem_listeners2.removeElement(var1);
  81.       this._jcommem_eventmulticaster2._jcommem_listeners = this._jcommem_listeners2;
  82.    }
  83.  
  84.    public synchronized int getTop() {
  85.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  86.       return this._jcommem_ocx.getTop();
  87.    }
  88.  
  89.    public synchronized void setTop(int var1) {
  90.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  91.       this._jcommem_ocx.setTop(var1);
  92.    }
  93.  
  94.    public synchronized Object getApplication() {
  95.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  96.       return this._jcommem_ocx.getApplication();
  97.    }
  98.  
  99.    public synchronized void Refresh2(Variant var1) {
  100.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  101.       this._jcommem_ocx.Refresh2(var1);
  102.    }
  103.  
  104.    public synchronized void Navigate(String var1, Variant var2, Variant var3, Variant var4, Variant var5) {
  105.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  106.       this._jcommem_ocx.Navigate(var1, var2, var3, var4, var5);
  107.    }
  108.  
  109.    public synchronized int getLeft() {
  110.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  111.       return this._jcommem_ocx.getLeft();
  112.    }
  113.  
  114.    public synchronized void setLeft(int var1) {
  115.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  116.       this._jcommem_ocx.setLeft(var1);
  117.    }
  118.  
  119.    public void addDWebBrowserEvents2EventListener(DWebBrowserEvents2EventListener var1) {
  120.       this._jcommem_listeners2.addElement(var1);
  121.       this._jcommem_eventmulticaster2._jcommem_listeners = this._jcommem_listeners2;
  122.    }
  123.  
  124.    public void removeWebBrowser_V1EventListener(WebBrowser_V1EventListener var1) {
  125.       this._jcommem_listeners3.removeElement(var1);
  126.       this._jcommem_eventmulticaster3._jcommem_listeners = this._jcommem_listeners3;
  127.    }
  128.  
  129.    // $FF: synthetic method
  130.    private static Class class$(String var0) {
  131.       try {
  132.          return Class.forName(var0);
  133.       } catch (ClassNotFoundException var3) {
  134.          throw new NoClassDefFoundError(((Throwable)var3).getMessage());
  135.       }
  136.    }
  137.  
  138.    public synchronized void GoHome() {
  139.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  140.       this._jcommem_ocx.GoHome();
  141.    }
  142.  
  143.    public synchronized String getType() {
  144.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  145.       return this._jcommem_ocx.getType();
  146.    }
  147.  
  148.    public synchronized boolean getTopLevelContainer() {
  149.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  150.       return this._jcommem_ocx.getTopLevelContainer();
  151.    }
  152.  
  153.    public synchronized int getHeight() {
  154.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  155.       return this._jcommem_ocx.getHeight();
  156.    }
  157.  
  158.    public synchronized void GoSearch() {
  159.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  160.       this._jcommem_ocx.GoSearch();
  161.    }
  162.  
  163.    public synchronized void GoBack() {
  164.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  165.       this._jcommem_ocx.GoBack();
  166.    }
  167.  
  168.    public synchronized void setHeight(int var1) {
  169.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  170.       this._jcommem_ocx.setHeight(var1);
  171.    }
  172.  
  173.    public void addWebBrowser_V1EventListener(WebBrowser_V1EventListener var1) {
  174.       this._jcommem_listeners3.addElement(var1);
  175.       this._jcommem_eventmulticaster3._jcommem_listeners = this._jcommem_listeners3;
  176.    }
  177.  
  178.    public WebBrowser_V1() {
  179.       try {
  180.          ((ActiveXControl)this).createControl("{EAB22AC3-30C1-11CF-A7EB-0000C05BAE0B}");
  181.          this._jcommem_ocx = (IWebBrowser)((ActiveXComponent)this).getObject();
  182.       } catch (Exception var1) {
  183.       }
  184.  
  185.       this._jcommem_eventmulticaster2 = new DWebBrowserEvents2EventMulticaster();
  186.       this._jcommem_eventmulticaster3 = new WebBrowser_V1EventMulticaster();
  187.    }
  188.  
  189.    public synchronized int getWidth() {
  190.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  191.       return this._jcommem_ocx.getWidth();
  192.    }
  193.  
  194.    public synchronized void setWidth(int var1) {
  195.       PolicyEngine.checkCallerForAllPermissions((Class[])null);
  196.       this._jcommem_ocx.setWidth(var1);
  197.    }
  198. }
  199.